# Wineplugin requires GTK and X11
CFLAGS = -Wall -DXP_UNIX=1 -DMOZ_X11=1 -fPIC -g

npbasicplugin : wineplugin.o
	cc $(CFLAGS) -shared wineplugin.o -o wineplugin.so

wineplugin.o : wineplugin.c wineplugin.h
	cc `pkg-config --cflags gtk+-2.0` $(CFLAGS) -c wineplugin.c

clean :
	rm wineplugin.so wineplugin.o

